﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    class Teacher : Person
    {
        private string Title;
        private int Wageno;

        public string title
        {
            get { return this.Title; }
            set { this.Title = value; }
        }
        public int wageno
        {
            get { return this.Wageno; }
            set { this.Wageno = value; }
        }
        public Teacher(int Id, string Name, string Sex, int Cardid, int Tel) : base( Id,  Name,  Sex,  Cardid,  Tel) { }
        public void A()
        {
            Console.WriteLine("学生编号：{0},学生名：{1}，性别:{2}，身份证号：{3}，电话号码:{4}，专业:{5}，年级:{6}",
       id, name, sex, cardid, tel, title, wageno);
        }
    }
}
